Optimal. Leaf size=34 \[ \frac {\log (\sinh (c+d x))}{a d}-\frac {\log (a+b \sinh (c+d x))}{a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {2800, 36, 29,
31} \begin {gather*} \frac {\log (\sinh (c+d x))}{a d}-\frac {\log (a+b \sinh (c+d x))}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 2800
Rubi steps
\begin {align*} \int \frac {\coth (c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{x (a+x)} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {1}{x} \, dx,x,b \sinh (c+d x)\right )}{a d}-\frac {\text {Subst}\left (\int \frac {1}{a+x} \, dx,x,b \sinh (c+d x)\right )}{a d}\\ &=\frac {\log (\sinh (c+d x))}{a d}-\frac {\log (a+b \sinh (c+d x))}{a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 28, normalized size = 0.82 \begin {gather*} \frac {\log (\sinh (c+d x))-\log (a+b \sinh (c+d x))}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.74, size = 33, normalized size = 0.97
method | result | size |
derivativedivides | \(\frac {-\frac {\ln \left (a +b \sinh \left (d x +c \right )\right )}{a}+\frac {\ln \left (\sinh \left (d x +c \right )\right )}{a}}{d}\) | \(33\) |
default | \(\frac {-\frac {\ln \left (a +b \sinh \left (d x +c \right )\right )}{a}+\frac {\ln \left (\sinh \left (d x +c \right )\right )}{a}}{d}\) | \(33\) |
risch | \(\frac {\ln \left ({\mathrm e}^{2 d x +2 c}-1\right )}{a d}-\frac {\ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \,{\mathrm e}^{d x +c}}{b}-1\right )}{a d}\) | \(53\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 75 vs.
\(2 (34) = 68\).
time = 0.28, size = 75, normalized size = 2.21 \begin {gather*} -\frac {\log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{a d} + \frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{a d} + \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 67, normalized size = 1.97 \begin {gather*} -\frac {\log \left (\frac {2 \, {\left (b \sinh \left (d x + c\right ) + a\right )}}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right ) - \log \left (\frac {2 \, \sinh \left (d x + c\right )}{\cosh \left (d x + c\right ) - \sinh \left (d x + c\right )}\right )}{a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\coth {\left (c + d x \right )}}{a + b \sinh {\left (c + d x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.48, size = 61, normalized size = 1.79 \begin {gather*} -\frac {\frac {\log \left ({\left | b {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} + 2 \, a \right |}\right )}{a} - \frac {\log \left ({\left | e^{\left (d x + c\right )} - e^{\left (-d x - c\right )} \right |}\right )}{a}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.41, size = 254, normalized size = 7.47 \begin {gather*} \frac {2\,\mathrm {atan}\left (\frac {a\,\sqrt {-a^2\,d^2}+b\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-a^2\,d^2}-2\,a\,{\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}\,\sqrt {-a^2\,d^2}-b\,{\mathrm {e}}^{3\,c}\,{\mathrm {e}}^{3\,d\,x}\,\sqrt {-a^2\,d^2}}{a^2\,d}\right )}{\sqrt {-a^2\,d^2}}-\frac {2\,\mathrm {atan}\left (\left (4\,a^4\,b\,d\,\sqrt {-a^2\,d^2}+4\,a^2\,b^3\,d\,\sqrt {-a^2\,d^2}\right )\,\left (\frac {1}{8\,a\,b\,d^2\,{\left (a^2+b^2\right )}^2}-{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (\frac {1}{16\,b^2\,d^2\,{\left (a^2+b^2\right )}^2}-\frac {{\left (a^2+2\,b^2\right )}^2}{16\,a^4\,b^2\,d^2\,{\left (a^2+b^2\right )}^2}\right )+\frac {a^2+2\,b^2}{8\,a^3\,b\,d^2\,{\left (a^2+b^2\right )}^2}\right )\right )}{\sqrt {-a^2\,d^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________